package org.shijiagen.user.service;

import org.shijiagen.param.PageParam;
import org.shijiagen.param.UserCheckParam;
import org.shijiagen.param.UserLoginParam;
import org.shijiagen.pojo.User;
import org.shijiagen.utils.R;

public interface UserService {
    /**
     *
     * @param param 传进来的账号
     * @return 返回值不为0则代表该账号存在
     */
    Long check(UserCheckParam param);

    Boolean register(User user);

    User login(UserLoginParam loginParam);

    R listPage(PageParam param);

    R remove(Integer userId);

    R update(User user);

    R save(User user);
}
